
package com.tiantian.mall.dao;

import com.tiantian.mall.entity.TianTianMallOrder;
import com.tiantian.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TianTianMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(TianTianMallOrder record);

    int insertSelective(TianTianMallOrder record);

    TianTianMallOrder selectByPrimaryKey(Long orderId);

    TianTianMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(TianTianMallOrder record);

    int updateByPrimaryKey(TianTianMallOrder record);

    List<TianTianMallOrder> findNewBeeMallOrderList(PageQueryUtil pageUtil);

    int getTotalNewBeeMallOrders(PageQueryUtil pageUtil);

    List<TianTianMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);
}